﻿this.createTextField("songinfo_txt", this.getNextHighestDepth, 0, 0, Stage.width, 22);
var bg_sound:Sound = new Sound();
bg_sound.loadSound("yourSong.mp3", true);
bg_sound.onID3 = function() {
 songinfo_txt.text = "(" + this.id3.artist + ") " + this.id3.album + " - " + this.id3.track + " - "
 + this.id3.songname;
 for (prop in this.id3) {
 trace(prop+" = "+this.id3[prop]);
 }
 trace("ID3 loaded.");
};
this.play_mc.onRelease = function() {
 /* get the current offset. if you stop all sounds and click the play button, the MP3 continues from
 where it was stopped, instead of restarting from the beginning. */
 var numSecondsOffset:Number = (bg_sound.position/1000);
 bg_sound.start(numSecondsOffset);
};
this.stop_mc.onRelease = function() {
 stopAllSounds();
};